package com.yunxin.download.server.infra.repository;

import com.yunxin.download.server.infra.repository.mapper.DownloadMethodConfigMapper;
import com.yunxin.download.server.model.entity.DownloadMethodConfigWithBLOBs;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

/**
 * @author zero°
 * @since 2023-06-13
 */
@Repository
public interface DownloadMethodConfigDao extends DownloadMethodConfigMapper {

    /**
     * 根据方法code查询方法配置
     * @param methodCode methodCode
     * @param systemCode systemCode
     * @return DownloadMethodConfig
     */
    DownloadMethodConfigWithBLOBs selectDownloadMethodConfigByMethodCode(@Param("methodCode") String methodCode,
                                                                         @Param("systemCode") String systemCode);

}
